package com.example;

public class Class {
    private int id;
    private String name;
    private int majorId;
    private String grade;
    private String createdAt;

    public Class(int id, String name, int majorId, String grade, String createdAt) {
        this.id = id;
        this.name = name;
        this.majorId = majorId;
        this.grade = grade;
        this.createdAt = createdAt;
    }

    // Getters
    public int getId() { return id; }
    public String getName() { return name; }
    public int getMajorId() { return majorId; }
    public String getGrade() { return grade; }
    public String getCreatedAt() { return createdAt; }

    // Setters
    public void setId(int id) { this.id = id; }
    public void setName(String name) { this.name = name; }
    public void setMajorId(int majorId) { this.majorId = majorId; }
    public void setGrade(String grade) { this.grade = grade; }
    public void setCreatedAt(String createdAt) { this.createdAt = createdAt; }

    @Override
    public String toString() {
        return name;
    }
} 